package com.tanjun.data.entity;

import com.mybatisflex.annotation.Column;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class BaseEntity {
    /**
     * 创建时间
     */
    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    @Column(value = "creator")
    private String creator;

    /**
     * 修改时间
     */
    @Column(onUpdateValue = "now()")
    private LocalDateTime updateTime;

    /**
     * 修改人
     */
    private String updater;

    @Column(isLogicDelete = true)
    private Integer deleted;
}
